class BinaryController < ApplicationController
	
	def monogram 
		@image_data = Monogram.find(params[:id])
		@image = @image_data.binary
		send_data(@image, :type => "image/png", :disposition => 'inline')
	end
	
	def brand_logo_on
		@image_data = Brand.find(params[:id])
		@image = @image_data.on_logo
		send_data(@image, :type => "image/png", :disposition => 'inline')
	end
	
	def brand_logo_off
		@image_data = Brand.find(params[:id])
		@image = @image_data.off_logo
		send_data(@image, :type => "image/png", :disposition => 'inline')
	end	
	
	def corner
		@image_data = Corner.find(params[:id])
		@image = @image_data.binary
		send_data(@image, :type => "image/png", :disposition => 'inline')
	end		
	
	def corner_bottom
		@image_data = Corner.find(params[:id])
		@image = @image_data.binary_b
		send_data(@image, :type => "image/png", :disposition => 'inline')
	end		

	def design
		@image_data = Design.find(params[:id])
		@image = @image_data.binary
		send_data(@image, :type => "image/png", :disposition => 'inline')
	end	
	def mini_monogram
		@image_data = MonogramFamily.find(params[:id])
		@image = @image_data.data
		send_data(@image,:type=>"image/png", :disposition => "inline")
	end
end
